enum Status {
  SUCCESS,
  ERROR
}

console.log(Status.SUCCESS)
console.log(Status.ERROR)

enum Direction {
  UP = 'UP',
  DOWN = 'DOWN',
  LEFT = 'LEFT',
  RIGHT = 'RIGHT'
}

console.log(Direction.UP)

enum HttpMethods {
  GET = 'GET',
  POST = 'POST',
  PUT = 'PUT',
  DELETE = 'DELETE'
}

function isSafely(method: HttpMethods) {
  return method === HttpMethods.GET
}

console.log(isSafely('GET' as HttpMethods))
console.log(isSafely(HttpMethods.POST))